/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sunsite.service;

import java.util.List;
import org.springframework.dao.DataAccessException;
import sunsite.dao.ResourceDao;
import sunsite.po.Resource;

/**
 *
 * @author mg
 */
public class ResourceServiceImpl implements ResourceService{

    private sunsite.dao.ResourceDao resourceDao;

    public void setResourceDao(ResourceDao resourceDao) {
        this.resourceDao = resourceDao;
    }

    public List<Resource> getTop10Software() throws DataAccessException {
        return resourceDao.getTop10Software();
    }

    public List<Resource> getLatestResource() throws DataAccessException {
        return resourceDao.getLatestResource();
    }

}
